

import bpy
import nodeitems_utils
from bpy.types import Operator, Menu



class C_节点子菜单_场景物体数据(Menu):
	bl_idname = "node.scene_objects"
	bl_label = "场景数据"
	
	def draw(self, context):
		layout = self.layout
		#layout.operator("node.global_node_scene_frame")
		#layout.operator("node.global_node_getobj_prop_add")
		#layout.operator("node.global_node_get_one_dim_obj_prop_add")
		#new
		layout.operator("node.global_node_scene", icon='SCENE_DATA')
		
		
		#old
		layout.operator('node.global_node_objects')
		layout.operator("node.global_node_collection_get_objects")
		layout.operator('node.global_node_objects_particle')
		layout.operator('node.global_node_getobj_material')
		layout.operator('node.global_node_coord_get_objects')
		layout.operator('node.global_node_objects_images')
		layout.operator('node.global_node_objects_textures')
		layout.operator('node.global_node_get_texture_attr')
		




class C_节点子菜单_物体数据(Menu):
	bl_idname = "node.scene_objects_data"
	bl_label = "物体数据"

	def draw(self, context):
		layout = self.layout
		#layout.operator("node.global_node_get_mesh_faces")
		
		



class C_节点子菜单_场景属性(Menu):
	bl_idname = "node.scene_prop"
	bl_label = "场景属性"

	def draw(self, context):
		layout = self.layout
		layout.operator("node.global_node_scene_frame_time", icon='TIME')




















class C_节点子菜单_engine_场景物体数据(Menu):
	bl_idname = "node.menu_engine_scene_objects"
	bl_label = "场景数据"
	
	def draw(self, context):
		layout = self.layout
		
		layout.operator('node.global_node_get_object', icon='OBJECT_DATA')
		layout.operator('node.global_node_get_collection_objects', icon='GROUP')
		layout.operator('node.global_node_scene', icon='SCENE_DATA')






classes = (
	C_节点子菜单_场景物体数据,
	C_节点子菜单_物体数据,
	C_节点子菜单_场景属性,

	C_节点子菜单_engine_场景物体数据,

)

def register():
	for c in classes:
		bpy.utils.register_class(c)

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)

	



